package com.ruoyi.my.service.impl;

import com.ruoyi.my.domain.MyCategory;
import com.ruoyi.my.mapper.MyCategoryMapper;
import com.ruoyi.my.service.MyCategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


import java.util.List;

@Service
public class MyCategoryServiceImpl implements MyCategoryService {

    @Autowired
    MyCategoryMapper myCategoryMapper;

    @Override
    public List<MyCategory> selectMyCategory() {
        return myCategoryMapper.selectList(null);
    }

    @Override
    public MyCategory selectMyCategoryByID(Integer id) {
        return myCategoryMapper.selectById(id);
    }
}
